package controller;
import entity.User;
import service.impl.UserServiceImpl;

public class UserController {
	private UserServiceImpl usi = new UserServiceImpl();
	
	public User login(User user){
		return usi.login(user);
	}
	
	public boolean regist(User user){
		return usi.regist(user);
	}
	
	public boolean saveMoney(double money){
		return usi.saveMoney(money);
	}
	
	public boolean withDraw(double money){
		return usi.withDraw(money);
	}
	
	public boolean transform(int id,double money){
		return usi.transform(id, money);
	}
	
	public double checkBalance(){
		return usi.checkBalance();
	}
}
